//package com.kepler.social.web.configuration;
//
//import org.springframework.beans.factory.annotation.Value;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.EnableWebMvc;
//import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//import org.springframework.web.servlet.resource.VersionResourceResolver;
//
///**
// * 参考 1: https://docs.spring.io/spring-framework/reference/web/webmvc/mvc-config/static-resources.html
// *     2: https://stackoverflow.com/questions/57524003/spring-boot-trouble-with-external-resource
// */
//
//@Configuration
//@EnableWebMvc
//public class ResourceConfig implements WebMvcConfigurer {
//
//    @Value("${app.static-files-folder}")
//    private String staticFilesFolder;
//
//    @Override
//    public void addResourceHandlers(ResourceHandlerRegistry registry) {
//        registry.addResourceHandler("/file/**")
//                .addResourceLocations("file:" + staticFilesFolder)
//                .resourceChain(true)
//                .addResolver(new VersionResourceResolver().addContentVersionStrategy("/file/**"));
//    }
//
//}